package ac.github.os.internal.core.script.impl

import ac.github.os.internal.core.holder.EventHolder
import ac.github.os.internal.core.script.BaseWrapper
import ac.github.os.internal.core.script.InternalConfig
import ac.github.os.internal.core.script.InternalScript
import ac.github.os.internal.core.trigger.Trigger
import taboolib.common.platform.Awake

@Awake
class EventScript : InternalScript<EventScript.Wrapper> {

    override fun execute(trigger: Trigger?, wrapper: Wrapper, config: InternalConfig, string: String): String? {
        return wrapper.holder.variable(string)
    }

    class Wrapper(val holder: EventHolder<*>) : BaseWrapper

    override val name: String
        get() = "event"

}